<script setup>
</script>

<template>
    <div class="list-item">
        <!-- 导航区域 -->
        <span>精彩活动</span>
        <span>查看更多></span>
        <!-- 轮播图 -->
        <div class="list-item-banner">
            <img src="../images/banner2.png" alt="">
        </div>
        <!-- 左右小图 -->
        <div class="list-item-photo">
            <img src="../images/sale_index.png" alt="">
            <img src="../images/supermarket.png" alt="">
        </div>
    </div>
</template>

<style scoped>
/* 导航区域 */

.list-item {
    position: relative;
    margin-top: 1rem;
    background-color: #fff;
    /* margin-bottom: -.3rem; */
}

.list-item span {
    width: 6rem;
    height: 3rem;
    font-size: 1.4rem;
    text-align: center;
    line-height: 3rem;
}

.list-item span:nth-child(2) {
    width: 6rem;
    font-size: 1rem;
    float: right;
    color: #868686;
    margin-bottom: 1rem;
}

/* 轮播图 */

.list-item-banner {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -.2rem;
}

.list-item-banner img:nth-child(1) {
    overflow: hidden;
    position: relative;
    font-size: 0;
    width: 32.5rem;
}

.list-item-photo {
    width: auto;
}

.list-item-photo img {
    display: inline-block;
    overflow: hidden;
    position: relative;
    font-size: 0;
    width: 16.25rem;
}



/* 移动端样式 */
@media screen and (min-width:0) and (max-width:1024px) {
    .list-item span {
        width: 100%;
    }


    .list-item-banner img:nth-child(1) {
        width: 100%;
    }

    .list-item-photo img {
        width: 50%;
    }
}

@media screen and (min-width: 1025px) {

    /* 在屏幕宽度大于等于1025px时应用的样式 */
    .list-item span {
        width: 100%;
    }


    .list-item-banner img:nth-child(1) {
        width: 100%;
    }

    .list-item-photo img {
        width: 50%;
    }
}
</style>
